package com.atguigu.tingshu.payment.service;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wechat.pay.java.service.payments.model.Transaction;

public interface PaymentInfoService extends IService<PaymentInfo> {

   // 保存微信支付的交易信息
   public abstract void savePaymentInfo(OrderInfo orderInfo);

   // 支付成功以后需要更改交易信息的状态
   public abstract void updatePaymentStatus(Transaction transaction);

   // 保存交易信息
   public abstract void savePaymentInfo(RechargeInfo rechargeInfo);
}
